package com.andyliu.system.service.impl;

import com.andyliu.system.entity.OperLog;
import com.andyliu.system.mapper.OperLogMapper;
import com.andyliu.system.service.IOperLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author andyLiu
 * @since 2021-09-18
 */
@Service
public class OperLogServiceImpl extends ServiceImpl<OperLogMapper, OperLog> implements IOperLogService {
    @Autowired
    private OperLogMapper operLogMapper;

      public  IPage<OperLog> selectByPage(Integer pageNumber,Integer pageSize, OperLog operLog){
        return operLogMapper
                .selectByPage(new Page<OperLog>(pageNumber,pageSize),operLog);
      }

}
